<template>
  <div class="counselor-page-root">
    <router-link class="back-btn" to="/counselor">← 返回辅导员端导航</router-link>
    <div class="main-card">
      <h2>问卷查阅</h2>
      <div class="btn-group">
        <button class="btn main">导出数据</button>
        <button class="btn secondary">查看统计</button>
      </div>
      <div class="survey-list">
        <div class="survey-item" v-for="item in surveys" :key="item.id">
          <div class="survey-title">{{ item.title }}</div>
          <div class="survey-meta">{{ item.date }} | 已回收 {{ item.count }} 份</div>
          <button class="btn mini" @click="viewDetail(item)">查看详情</button>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'CounselorSurveyView',
  data() {
    return {
      surveys: [
        { id: 1, title: '满意度调查', date: '2024-06-01', count: 50 },
        { id: 2, title: '安全问卷', date: '2024-06-10', count: 30 }
      ]
    }
  },
  methods: {
    viewDetail(item) {
      alert('查看详情（模拟）：' + item.title);
    }
  }
}
</script>
<style scoped>
.counselor-page-root { min-height: 100vh; background: #f6f8fa; padding: 32px 0 60px 0; }
.main-card { max-width: 600px; margin: 36px auto; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(102,126,234,0.10); padding: 36px 32px 28px 32px; }
h2 { text-align: center; margin-bottom: 28px; color: #4a4a4a; }
.btn-group { display: flex; gap: 18px; margin-bottom: 24px; justify-content: center; }
.btn { padding: 10px 28px; border: none; border-radius: 22px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s, box-shadow 0.2s; }
.btn.main { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); color: #fff; box-shadow: 0 2px 8px rgba(102,126,234,0.10); }
.btn.main:hover { background: linear-gradient(90deg, #5a67d8 0%, #6b46c1 100%); }
.btn.secondary { background: #f0f1f5; color: #666; }
.btn.secondary:hover { background: #e0e7ef; }
.btn.mini { background: #007bff; color: #fff; padding: 6px 18px; font-size: 14px; margin-top: 10px; }
.btn.mini:hover { background: #0056b3; }
.survey-list { margin-top: 18px; }
.survey-item { background: #f8f9fa; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(102,126,234,0.06); }
.survey-title { font-weight: 500; font-size: 16px; color: #333; }
.survey-meta { font-size: 13px; color: #888; margin: 6px 0; }
.back-btn { display: inline-block; margin: 24px 0 18px 0; padding: 8px 22px; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 22px; font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: 0 2px 8px rgba(102,126,234,0.10); transition: background 0.2s, box-shadow 0.2s; }
.back-btn:hover { background: linear-gradient(90deg, #5a67d8 0%, #6b46c1 100%); box-shadow: 0 6px 18px rgba(102,126,234,0.18); }
</style> 